package com.menghanjun.mhjresourcesharing.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author menghanjun
 * @since 2024-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TResources implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资源ID
     */
    private Long resourceId;

    /**
     * 资源标题
     */
    private String title;

    /**
     * 资源路径
     */
    private String url;

    /**
     * 资源描述
     */
    private String description;

    /**
     * 资源类型
     */
    private String type;

    /**
     * 发布者ID
     */
    private Long uploaderId;

    /**
     * 资源等级，0代表免费，1代表vip，2代表收费
     */
    private int level;

    /**
     * 创建时间
     */
    @JsonFormat(shape =JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createdAt;


    /**
     * 资源封面
     */
    private String cover;


    /**
     * 已存档标记，Y是未删除的正常资源,N是已删除的资源
     */
    private String archived;


    /**
     * 点击次数
     */
    private int clickCount;


}
